const admins = require("../dao/adminsDao");

const creatPetUser = async (data) => await admins.creatPetUser(data);
const changeStatus = async (_id, params) => await admins.changeStatus(_id, params);
const getAllPetuser = async (data) => await admins.getAllPetuser(data);
const getStores = async () => await admins.getStores();
const getAllSupplier = async () => await admins.getAllSupplier();
const getPetUserById = async (data) => await admins.getPetUserById(data);
const deletePetUser = async (data) => await admins.deletePetUser(data);
const petuserUpdate = async (_id, params) => await admins.petuserUpdate(_id, params);
//管理员
const creatStore = async (data) => await admins.creatStore(data);
const creatAdmin = async (data) => await admins.creatAdmin(data);
const getAllAdmin = async (data) => await admins.getAllAdmin(data);
const getAdminById = async (data) => await admins.getAdminById(data);
const getDorById = async (data) => await admins.getDorById(data);

const deleteAdmin = async (data) => await admins.deleteAdmin(data);
const adminUpdate = async (_id, params) => await admins.adminUpdate(_id, params);

//供应商的
const getsupolierById = async (data) => await admins.getsupolierById(data);
const addSupplier = async (data) => await admins.addSupplier(data);

//门店
const getstoreById = async (data) => await admins.getstoreById(data);
module.exports = {
    changeStatus,
    creatPetUser,
    getAllPetuser,
    petuserUpdate,
    getPetUserById,
    deletePetUser,
    getStores,
    creatAdmin,
    getAllAdmin,
    deleteAdmin,
    adminUpdate,
    getAdminById,
    creatStore,
    getDorById,
    getsupolierById,
    addSupplier,
    getAllSupplier,
    getstoreById
};